package hanjia;

import lombok.Synchronized;

/**
 * Description:
 * Author:    Dane
 * CreateTime:2025/2/7-下午2:12
 * Since  :   1.0
 * Version:   1.0
 */
public class Singleton {
    private static  Singleton instance;

    private Singleton() {
    }
    public static Singleton getInstance(){
        if (instance==null){
            synchronized(Singleton.class){
                if (instance==null){
                    instance=new Singleton();
                }
            }


        }


        return instance;



    }


}
